package com.mark.springboot.service;

import com.mark.springboot.dao.QueryDao;
import com.mark.springboot.domain.Tables;
import com.mark.springboot.util.DateToWordUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class GenerateService {

    @Autowired
    QueryDao queryDao;

    @Autowired
    DateToWordUtil dateToWordUtil;



    /**
     * 获取数据
     */
    public void getTableInfo(String dbName) {
        List<Tables> tables = queryDao.getAllTables(dbName);
        dateToWordUtil.toWord(tables, "temp.doc",dbName);

    }
}
